using System;
using CommunityServer.Components;
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

namespace CommunityServer.Blogs.Components
{
    public class CategoryTag
    {
		private PostCategory _pc;
		private string _link;
		public CategoryTag(PostCategory pc)
		{
			_pc = pc;
		}


        public string Name
        {
            get{return _pc.Name;}
        }

		public string Description
		{
			get{return _pc.Description;}
		}

		public int CategoryID
		{
			get{return _pc.CategoryID;}
		}

		
        public string Link
        {
            get {return _link;}
			set{_link = value;}
        }

		public int Count
		{
			get{return _pc.TotalThreads;}
		}

		public DateTime Updated
		{
			get{return _pc.MostRecentPostDate;}
		}
    }
}